-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: reload crashes the app #1020
Conversation
ui/desktop/src/main.ts
Outdated
}) | ||
.catch((err) => { | ||
console.error('Failed to load window:', err); | ||
// Try alternative path if first attempt fails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this alternative more likely to work? If so, should we just use it as the only way we try to load the index.html
? Feels like we should be able to know one that will work and use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair! let me do a rev on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you were right - not needed. reload continues to work.
3db1b84
to
11a0cc7
Compare
Closes #881 |
Reloads are crashing the app because it loses context on how to access the routes to load.
The fix appears is to use proper file protocol URL with correct base path in production.